export default {
  methods: {
    // 前往登录页
    handleLoginPage() {
      let fullPath = getCurrentPages()[getCurrentPages().length-1].$page.fullPath;
      let returnUrl = encodeURIComponent(fullPath);
      // #ifdef H5
      uni.navigateTo({
        url: "/pagesSub/public/login/index?returnUrl="+returnUrl,
      });
      // #endif
      // #ifdef MP-WEIXIN
      uni.navigateTo({
        url: "/pagesSub/public/loginMode/index?returnUrl="+returnUrl,
      });
      // #endif
    },
  }
}